package hy;

import com.A;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ImportResource;

@EnableConfigurationProperties(A.class)
@SpringBootApplication
@ImportResource(locations="classpath:a.xml")
public class Day1Demo1Application {

	public static void main(String[] args) {
		ApplicationContext c = SpringApplication.run(Day1Demo1Application.class, args);
		for (String s : c.getBeanDefinitionNames()) {
			System.out.println(s);
		}
	}

}
